package com.api.hbjsl.test.service.impl;

import weaver.general.BaseBean;
import weaver.interfaces.workflow.action.Action;
import weaver.soa.workflow.request.RequestInfo;


import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.HashMap;

public class JslTestAction extends BaseBean implements Action {

    @GET
    @Path("/sayHello")
    @Produces(MediaType.TEXT_PLAIN)
    @Override
    public String execute(RequestInfo requestInfo) {
        HashMap<String, Object> map = new HashMap<>();
        map.put("name","hello hbjsl!");
        return "hello hbjsl!";
    }
}
